package org.jeecg.modules.cusstyle.mapper;

import org.apache.ibatis.annotations.Update;
import org.jeecg.modules.cusstyle.entity.CusStyleInfo;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import io.lettuce.core.dynamic.annotation.Param;

/**
 * @Description: 款式资料
 * @Date:   2021-09-13
 * @Version: V1.0
 */
public interface CusStyleInfoMapper extends BaseMapper<CusStyleInfo> {

	/**
	 * 根据订单号更新所订款式的状态
	 * @param orderInfoId
	 * @param status
	 */
	@Update("UPDATE style_customer_info SET status = #{status} WHERE order_info_id = #{orderInfoId}")
	Integer updateStatusByOrderInfoId(@Param("orderInfoId") String orderInfoId, @Param("status") Integer status);

}
